package com.naiterui.ehp.bs.b2c.order.repository;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.b2c.order.entity.OrderUser;

@Repository
public interface IOrderUserRepository extends BaseJpaRepository<OrderUser, Long> {

    /**
     * 根据订单ID查询收货人
     *
     * @param orderId
     *
     * @return
     */
    OrderUser findByOrderIdAndType(Long orderId, Integer type);
}
